package cn.akwangl.design.pattern.behavioral.command.v1;

/**
 * 具体命令B
 *
 * @author youyongkun
 * @date 2021/12/7 16:31
 */
public class ConcreteCommandB implements Command {
    private ReceiverB receiverB;

    public ConcreteCommandB() {
        this.receiverB = new ReceiverB();
    }

    @Override
    public void execute() {
        receiverB.action();
    }
}
